]> dgit.raspbian.org Git - gnome-shell.git/commit
keyboard: Add KeyboardManager to manage the lifetime of the keyboard actor
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 28 Aug 2019 21:52:52 +0000 (23:52 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 16 Oct 2019 15:26:12 +0000 (15:26 +0000)
commit7059dcced355d673022f145b0b050deef18832df
tree46a5bdfe6c6fc085560843b55f221e8b4b03f0b0
parentc7e0c7eb792fcd665adb9901a1eab1fd6a5bd12d
keyboard: Add KeyboardManager to manage the lifetime of the keyboard actor

The Keyboard class used to be both a view and controller class, however in order
to make the keyboard a native Clutter.Actor, we need to separate the widget from
the controller class, so that we can manage the actor lifetime from the JS side.

Thus, initialize the keyboard actor on the Keyboard constructor and create a
KeyboardManager class to manage its state and lifetime.

Add proxy methods for the public functions that were used by other shell
components

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/559
js/ui/keyboard.js
js/ui/main.js